<div id="fb-root"></div>
<script src="http://connect.facebook.com/ja_JP/all.js"></script>
<?php
require_once 'fb_setting.php';
require_once 'facebookAlbums.php';
require_once 'HTTP/Request2.php';
require_once ("facebook-php-sdk-master/src/facebook.php");

class FacebookCallback {
    
    private $facebookAlbums;

    public function __construct() {
        $setting = new Setting();
        $facebook = new Facebook($setting->getLicence());
        $this->facebookAlbums = new FacebookAlbums($facebook,
                    $facebook->getAccessToken(), $facebook->getUser());
        //list取得
        $list = $this->facebookAlbums->getFriendList();
        
        $album = $this->facebookAlbums->getFacebookAlbums('100002126764575');
        var_dump($album);
        
    }
}

new FacebookCallback;
?>
